package com.gjy.sb.controller;

import com.gjy.sb.domain.Employee;
import com.gjy.sb.service.EmployeeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-08-20 05:03:03
 */
@RestController
@RequestMapping("/employee")
public class EmployeeController {

    @Resource
    private EmployeeService employeeService;

    @GetMapping("/all")
    public List<Employee> selectAll() {
        return employeeService.selectAll();
    }

}
